package net.jwtools.tmt.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

/**
 * 
 * Formateer de gegevens uniform
 * 
 */
public class Format {

	public static String format(Date date) {
		return format(date, "dd-MM-yy");
	}

	public static String format(Date date, String pattern) {
		if (date == null)
			return null;
		SimpleDateFormat f = new SimpleDateFormat(pattern);
		return f.format(date);
	}

}
